<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@include file="/common/taglibs.jsp"%>

<script type="text/javascript">

$(function() {
    parent.$.messager.progress('close');
});

var var_title='<s:text name="erp.listbusiness"><s:param><s:text name="erp.business.crm.crmcustomer.businame"></s:text></s:param></s:text>';

var var_column_cusNameEn='<s:text name="erp.business.crm.crmcustomer.cusnameen"></s:text>';
var var_column_cusNameZh='<s:text name="erp.business.crm.crmcustomer.cusnamezh"></s:text>';
var var_column_telFax='<s:text name="erp.business.crm.crmcustomer.telfax"></s:text>';
var var_column_email='<s:text name="erp.business.crm.crmcustomer.email"></s:text>';
var var_column_address='<s:text name="erp.business.crm.crmcustomer.address"></s:text>';

var var_search_title='<s:text name="erp.searchbusiness"><s:param><s:text name="erp.business.crm.crmcustomer.businame"></s:text></s:param></s:text>';
var var_add_title='<s:text name="erp.addbusiness"><s:param><s:text name="erp.business.crm.crmcustomer.businame"></s:text></s:param></s:text>';
var var_edit_title='<s:text name="erp.editbusiness"><s:param><s:text name="erp.business.crm.crmcustomer.businame"></s:text></s:param></s:text>';

</script>
<!-- 这里用chooseListCrmCustomer.js而不用ListCrmCustomer.js是因为，要求的字段不同，且很多按钮都用不到 -->
<script type="text/javascript" src="${ctx}/js/erp/crm/customer/chooseListCrmCustomer.js"></script>
     
     <div region="center" style="border: none;">
        <div id="searchPanelBox">
	        <div id="searchPanel">
	            <form id="queryCrmCustomerForm" name="queryCrmCustomerForm" action="" method="post">
	                <table class="tablewidth1">
	                	<tr>
	                		<td width="15%" align="right">
	                			<s:text name="erp.business.crm.crmcustomer.cusnameen"></s:text>：
	                		</td>
	                		<td width="20%" align="left">
	                			<input name="cusNameEn" class="mt10" style="width: 180px;" type="text" value=""/>
	                		</td>
	                		<td width="15%" align="right">
	                			<s:text name="erp.business.crm.crmcustomer.cusnamezh"></s:text>：
	                		</td>
	                		<td width="20%" align="left">
	                			<input name="cusNameZh" class="mt10" style="width: 180px;"  type="text" value=""/>
	                		</td>
	                		<td width="30%" align="left">
	                			&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<a id="queryCrmCustomerBtn" class="easyui-linkbutton" iconCls="icon-search">&nbsp;<s:text name="erp.search"></s:text>&nbsp;</a>
	                		</td>
	                	</tr>
	                </table>
	                <div class="fn-clear"></div>
	            </form>
	        </div>
        </div>
        <div class="m5">
            <table id="dataGridCrmCus" data-options="toolbar:'#dg-toolbar'"></table>
        </div>
    </div>
    
<script type="text/javascript">
document.onkeypress = function(e){
	e = e || window.event;
	var keyCode = e.which || e.keyCode;
	if(keyCode==KEY_ENTER){
		$('#queryCrmCustomerBtn').click();
	}
};		

</script>